package com.mallcloud.mall.mall.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@ApiModel(value = "MallUserPointsBalanceModel", description = "积分卡-卡余额以此值为准，因为积分卡中余额需要2分钟同步")
@Data
@TableName("V_JFYE")
public class MallUserPointsBalanceModel implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value="卡号")
	@TableId(value = "cdmno", type = IdType.ASSIGN_ID)
	private String cardNo;

	@ApiModelProperty(value="积分余额")
	@TableField("jf")
	private Long points;

	@ApiModelProperty(value="电子余额")
	@TableField("czye")
	private BigDecimal balance;
}
